package com.kl.modular.base.dao.model;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;


/**
 * 公用model
 *
 * 数据model 需继承该类
 *
 * @author xr_zjb
 * @date 2017/06/07 10:23
 *
 */
public class BaseModel implements Serializable {

    @TableId(type = IdType.ID_WORKER)
    private Long id;

    /** 创建时间 */
    private Date createTime;

    /** 更新时间 */
    private Date modifyTime;

    /** 最后操作人 */
    private Long modifyAdminId;

    /** 数据有效性 */
    private Boolean enabled = false;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Boolean getEnabled() {
        return enabled;
    }

    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }

    public Long getModifyAdminId() {
        return modifyAdminId;
    }

    public void setModifyAdminId(Long modifyAdminId) {
        this.modifyAdminId = modifyAdminId;
    }
}
